package com.spring;

import com.spring.core.AnnotationApplicationContext;
import com.spring.core.ApplicationContext;
import com.spring.service.UserService;
import org.junit.Test;

public class TestMain {
    @Test
    public void add() {
        ApplicationContext context =
                new AnnotationApplicationContext("com.spring");
        UserService userService = (UserService) context.getBean(UserService.class);
        System.out.println(userService);
        userService.add();
    }
}
